Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | class MenuView { |
||
8 | constructor(items, editorView) { |
||
9 | this.items = items; |
||
10 | this.editorView = editorView; |
||
11 | |||
12 | this.dom = document.createElement('div'); |
||
13 | this.dom.className = 'menubar'; |
||
14 | items.forEach(menuItem => this.dom.appendChild(menuItem.render(editorView))); |
||
15 | this.update(editorView); |
||
16 | } |
||
17 | |||
42 |